Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.7] Allow resolve with to accept type hinted params. #27077

Closed
wants to merge 1 commit into from
Closed

[5.7] Allow resolve with to accept type hinted params. #27077

wants to merge 1 commit into from

Conversation

AbdelElrafa
Copy link
Contributor

This PR follows up on the PR #24234. This allows us to resolve out of the container with params without needing to know their param variable name, we can just type hint them.

This adds fluency and consistency, with the way that we bind into the container. The way we bind in should be the way we can resolve out. We bind without knowing the params and we resolve without knowing the params.

app(ContainerDependentStub::class, [IContainerContractStub::class => $implementation])

@AbdelElrafa AbdelElrafa changed the title Allow resolve with to accept type hinted params. [5.7] Allow resolve with to accept type hinted params. Jan 5, 2019
@taylorotwell
Copy link
Member

No plans on merging this right now.

@AbdelElrafa AbdelElrafa deleted the resolve-with-type-hinted-params branch January 11, 2019 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants